package com.hotel.system.repository;

import com.hotel.comm.bean.system.EjobIndustry;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * 行业仓库层
 * Created by frank on 15-6-18.
 */
public interface IEjobIndustryRepository extends JpaRepository<EjobIndustry, Long> {
    @Query("select ei from EjobIndustry ei where ei.industryClass.id = ?1")
    public List<EjobIndustry> findByIndustryClassId(Long id);
}
